package com.heima.model.comment.dtos;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CommentReplyLikeDTO {
    /**
     * 回复id
     */
    @NotBlank(message = "文章评论回复的 id 不能为空")
    @JsonAlias("commentRepayId")
    private String commentReplyId;
    /**
     * 0：点赞
     * 1：取消点赞
     */
    @Range(min = 0, max = 1, message = "评论点赞的操作不符合规范")
    private Short operation;
}
